//
//  HEDataManageModel.m
//  HealthFamily
//
//  Created by LOOK on 2020/12/20.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import "HEDataManageModel.h"

@implementation HEDataManageModel

- (NSString *)KValue {
    if (!_KValue) {
        if ([@"1" isEqualToString:_exception]) {
            _KValue = [NSString stringWithFormat:@"↓ %@%@", _check_value, _check_unit];
            _KValueColor = KHexColor(@"52C41A");
        }else if ([@"2" isEqualToString:_exception]) {
            _KValue = [NSString stringWithFormat:@"↑ %@%@", _check_value, _check_unit];
            _KValueColor = CPriceColor;
        }else {
            _KValue = [NSString stringWithFormat:@"%@%@", _check_value, _check_unit];
            _KValueColor = CNavLightBlackColor;
        }
    }
    return _KValue;
}

- (NSString *)KMainValue {
    if (!_KMainValue) {
        if ([DYTools isBlankString:_check_value]) {
            _KMainValue = @"-";
        }else{
            _KMainValue =  [NSString stringWithFormat:@"%@%@", _check_value, _check_unit];
        }
    }
    return _KMainValue;
}

@end
